package com.vote.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
@MapperScan(basePackages = {"com.vote.common.mapper"})
@ComponentScan(basePackages = {"com.vote.admin", "com.vote.common"})
@EnableScheduling
public class VoteAdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(VoteAdminApplication.class, args);
    }
}
